// 引入 request 文件
import request from './index.js'
//新增用户文章
export function adduserarticle(data) {
  return request({
    url: '/adduserarticle',
    method: "post",
    data
  });
}
//获取全部文章
export function alluserarticle() {
  return request({
    url: '/alluserarticle',
    method: "get",
  });
}
//获取自己关注的文章
export function appointuser(e) {
		let data ={'idlist':e}
  return request({
    url: '/appointuser',
    method: "get",
	 data
  });
}
//获取指定用户的所有文章
export function myfollowarticle(e) {
		let data ={'idlist':e}
  return request({
    url: '/myfollowarticle',
    method: "get",
	 data
  });
}
//文章详情
export function getdetails(data) {

  return request({
    url: '/getdetails',
    method: "post",
    data
  });
}
//关注
export function followthat(data) {
  return request({
    url: '/followthat',
    method: "post",
    data
  });
}
//获取新增粉丝列表
export function addfslist(data) {
  return request({
    url: '/addfslist',
    method: "post",
    data
  });
}
//取消关注
export function remofollow(data) {
  return request({
    url: '/remofollow',
    method: "post",
    data
  });
}
//获取用户详情页面详情全部信息

export function userdetails(e) {
let data ={'userid':e}
  return request({
    url: '/userdetails',
    method: "get",
	 data
  });
}
//点赞文章
export function likearticle(data) {
  return request({
    url: '/likearticle',
    method: "post",
    data
  });
}
//添加文章评论
export function addreview(data) {
  return request({
    url: '/addreview',
    method: "post",
    data
  });
}
export function logs(e){
	let data = {}
	data.data=e
	return request({
	  url: '/logs',
	  method: "post",
	  data
	});
}
